ngl: Add padding between cached glyphs
authorMatthias Clasen <mclasen@redhat.com>
Fri, 14 May 2021 22:43:52 +0000 (18:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 16 May 2021 02:15:05 +0000 (22:15 -0400)
Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.

gsk/ngl/gsknglglyphlibrary.c

index 2179a804d70d9eb120280401a553ed31758b5cf8..3f998f4a0548acb17b1cbcb07822ba0abb1439f3 100644 (file)
@@ -318,7 +318,7 @@ gsk_ngl_glyph_library_add (GskNglGlyphLibrary      *self,
                                         sizeof *value,
                                         width,
                                         height,
-                                        0,
+                                        1,
                                         &packed_x, &packed_y);
 
   memcpy (&value->ink_rect, &ink_rect, sizeof ink_rect);